Hi all,
Since I did spit up my code into different units I got the following error:
[Linker Error] Unresolved external '_GainValues' referenced from I:\C++_PROJECTS_JOHAN\NEMA_REVIEW\MAIN.OBJ
Any help is very appreciated!
Thanks in advance,
Johan
Hi all,
Since I did spit up my code into different units I got the following error:
[Linker Error] Unresolved external '_GainValues' referenced from I:\C++_PROJECTS_JOHAN\NEMA_REVIEW\MAIN.OBJ
Any help is very appreciated!
Thanks in advance,
Johan
If you're using the command line to compile, are you compiling all of the .c or .cpp files before they are linked?
If you're using an IDE, are all of the .c or .cpp files added to the project for sure?
How are you compiling your project?
I use an IDE, Borland C++ Builder 6.0. The only thing I did was moving 5 procedures from the main program to a seperate unit. Before I moved the procedures to this unit everything worked fine.
Johan
The error indicates that somehow in your compiling, you're missing the .c file that actually implements GainValues(). Recheck your IDE's settings and make sure that that particular file is in the project's list of files to compile.
Either that, or add something like this:
at the top of your main file or at the top of your first included self-created header.Code:#pragma comment(lib, "Winmm.lib") // adjust as needed
High elevation is the best elevation. The higher, the better the view!
My computer: XP Pro SP3, 3.4 GHz i7-2600K CPU (OC'd to 4 GHz), 4 GB DDR3 RAM, X-Fi Platinum sound, GeForce 460, 1920x1440 resolution, 1250 GB HDD space, Visual C++ 2008 Express